package cn.zyx.oa.mapper;

import cn.zyx.oa.entity.OaNotify;
import cn.zyx.oa.entity.OaNotifyRecord;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * 通知通告记录MAPPER接口
 *
 * @author jeeplus
 * @version 2017-05-16
 */
@Mapper
public interface OaNotifyRecordMapper {

    /**
     * 插入通知记录
     *
     * @param oaNotifyRecordList
     * @return
     */
    public int insertAll(List<OaNotifyRecord> oaNotifyRecordList);

    /**
     * 根据通知ID删除通知记录
     *
     * @param oaNotifyId 通知ID
     * @return
     */
    public int deleteByOaNotifyId(String oaNotifyId);

    List<OaNotifyRecord> findList(OaNotifyRecord oaNotifyRecord);

    void update(OaNotifyRecord oaNotifyRecord);
}